﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="a.aspx.cs" Inherits="ShareMarking.DiyQrCode.a" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="js/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script src="js/tool.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            var code = GetQueryStringName("c");
            var ip = '<%=IP %>';
            var province = '<%=Province %>';
            var city = '<%=City %>';
            var isp = '<%=ISP %>';
            //var system = getOSAndBrowser();//获取操作系统
            var ipadderss = province + ":" + city;
            $.ajax({
                async: false,
                url: "/geturlapi.ashx?action=geturl",
                type: "POST",
                data: { code: code, ip: ip, ipadderss: ipadderss },
                success: function (res) {
                    var result = JSON.parse(res);
                    if (result.subcode == "00") {
                        //location.href = result.resulturl; //跳转
                        alert(location.href = result.resulturl)
                    } else {
                    }
                },
                error: function (ex) {
                }
            });
        })
</script>
</head>
<body>

</body>
</html>
